<%@ page contentType="text/html; charset=gb2312" pageEncoding="GBK"%>
<%@ page
	import="scsc.pub.db.DBManage,java.util.*,java.sql.*,DBstep.iDBManager2000.*"%>
<%String mRecordID = request.getParameter("RecordID");
			String mFileName = request.getParameter("FileName");
			String mDescript = request.getParameter("Descript");

			DBManage dbmanage = new DBManage();
			Connection conn = null;
			java.sql.PreparedStatement prestmt = null;
			try {
				if (dbmanage.getSession().isConnected()) {
					String mSql = "Update Template_File Set FileName = '"
							+ mFileName + "',Descript = '" + mDescript
							+ "' Where RecordID='" + mRecordID + "'";
					conn = dbmanage.getSession().connection();
					prestmt = conn.prepareStatement(mSql);
					conn.setAutoCommit(false);
					prestmt.execute();
					conn.commit();
				}
			} finally {
				try {
					prestmt.close();
					conn.close();
					dbmanage.close();
				} catch (Exception e) {
					System.out.println(e.toString());
				}
			}

			response.sendRedirect("TemplateList.jsp");
		%>
